package com.qk.service;

import com.qk.common.PageResult;
import com.qk.domain.business.BusinessCountDO;
import com.qk.domain.business.BusinessDO;
import com.qk.dto.business.BusinessDTO;
import com.qk.dto.business.BusinessFollowUpdateDTO;
import com.qk.entity.Business;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qk.vo.business.BusinessVO;

/**
* @author SweetHurt
* @description 针对表【business(商机表)】的数据库操作Service
* @createDate 2025-10-15 15:34:09
*/
public interface BusinessService extends IService<Business> {

    PageResult<BusinessDO> getBusinessByPage(BusinessDTO businessDTO);

    boolean addBusiness(Business business);

    BusinessVO getBusinessInfoById(Integer id);

    boolean assignBusiness(Integer businessId, Integer userId);

    boolean update(BusinessFollowUpdateDTO dto);

    boolean backBusiness(Integer id);

    boolean toCustomer(Integer id);
}
